from langserve import RemoteRunnable

if __name__ == '__main__':
    client = RemoteRunnable("http://127.0.0.1:8000/tslServer")
    #调用客户端的run方法
    result = client.invoke({"language":"意大利文","text":"为了部落！"})
    print(result)